package com.base.commonlib.http.call;

import android.util.Log;

import io.reactivex.functions.Consumer;
import io.reactivex.plugins.RxJavaPlugins;

/**
 * Date：2019/3/27 下午7:19
 * Creator：arvin
 * Des：
 */

public class RequestCall {
    //用于处理特殊异常
    static {
        RxJavaPlugins.setErrorHandler(new Consumer<Throwable>() {
            @Override
            public void accept(Throwable throwable) throws Exception {
                Log.i("Arvin", "setErrorHandler(undeliverable):" + throwable.toString());
            }
        });
    }
}
